<template>
    <div class="Lixi">
    <h1>我是联系</h1>
    <input type="text" v-model="data.age">
    <input type="text" v-model="data.mt">
    <h2>{{ data.all }}</h2>
  </div>
</template>

<script setup>
import { computed, reactive,toRef } from "vue";
const data =reactive({
  name:'张三',
  age:'16',
  mt:'0',
  all:computed(()=>{
    return parseInt(data.age)+parseInt(data.mt)
  })
})


</script>

<style>

</style>